package com.ruoyi.finance.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 折旧方法对象 depreciation_method
 * 
 * @author 李伟
 * @date 2025-03-06
 */
public class DepreciationMethod extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号（主键，自增） */
    private Long id;

    /** 折旧方法编码 */
    @Excel(name = "折旧方法编码")
    private String methodCode;

    /** 折旧名称 */
    @Excel(name = "折旧名称")
    private String methodName;

    /** 折旧年限 */
    @Excel(name = "折旧年限")
    private Long depreciationYears;

    /** 折旧期限 */
    @Excel(name = "折旧期限")
    private Long depreciationPeriod;

    /** 年折旧率 */
    @Excel(name = "年折旧率")
    private BigDecimal annualDepreciationRate;

    /** 每期折旧率 */
    @Excel(name = "每期折旧率")
    private BigDecimal periodDepreciationRate;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMethodCode(String methodCode) 
    {
        this.methodCode = methodCode;
    }

    public String getMethodCode() 
    {
        return methodCode;
    }
    public void setMethodName(String methodName) 
    {
        this.methodName = methodName;
    }

    public String getMethodName() 
    {
        return methodName;
    }
    public void setDepreciationYears(Long depreciationYears) 
    {
        this.depreciationYears = depreciationYears;
    }

    public Long getDepreciationYears() 
    {
        return depreciationYears;
    }
    public void setDepreciationPeriod(Long depreciationPeriod) 
    {
        this.depreciationPeriod = depreciationPeriod;
    }

    public Long getDepreciationPeriod() 
    {
        return depreciationPeriod;
    }
    public void setAnnualDepreciationRate(BigDecimal annualDepreciationRate) 
    {
        this.annualDepreciationRate = annualDepreciationRate;
    }

    public BigDecimal getAnnualDepreciationRate() 
    {
        return annualDepreciationRate;
    }
    public void setPeriodDepreciationRate(BigDecimal periodDepreciationRate) 
    {
        this.periodDepreciationRate = periodDepreciationRate;
    }

    public BigDecimal getPeriodDepreciationRate() 
    {
        return periodDepreciationRate;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("methodCode", getMethodCode())
            .append("methodName", getMethodName())
            .append("depreciationYears", getDepreciationYears())
            .append("depreciationPeriod", getDepreciationPeriod())
            .append("annualDepreciationRate", getAnnualDepreciationRate())
            .append("periodDepreciationRate", getPeriodDepreciationRate())
            .append("status", getStatus())
            .append("remarks", getRemarks())
            .toString();
    }
}
